package com.ruoyi.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 点赞管理对象 ac_like
 * 
 * @author ruoyi
 * @date 2022-06-19
 */
public class AcLike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 点赞对象类型(0=博客、1=评论) */
    @Excel(name = "点赞对象类型(0=博客、1=评论)")
    private Long objType;

    /** 对象id */
    @Excel(name = "对象id")
    private Long objId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 是否喜欢(0=踩、1=顶) */
    @Excel(name = "是否喜欢(0=踩、1=顶)")
    private Integer isLike;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setObjType(Long objType) 
    {
        this.objType = objType;
    }

    public Long getObjType() 
    {
        return objType;
    }
    public void setObjId(Long objId) 
    {
        this.objId = objId;
    }

    public Long getObjId() 
    {
        return objId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setIsLike(Integer isLike) 
    {
        this.isLike = isLike;
    }

    public Integer getIsLike() 
    {
        return isLike;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("objType", getObjType())
            .append("objId", getObjId())
            .append("userId", getUserId())
            .append("isLike", getIsLike())
            .append("createTime", getCreateTime())
            .toString();
    }
}
